Hi,
I've been experiencing many problems using JSCookMenu + Facelets:
1)
<x:jscookMenu layout="hbr" theme="ThemeOffice" id="app_menu">
<x:navigationMenuItem itemLabel="#{bundle.menu_Exit}"
action="#{login.logout}" icon=""/>
</x:jscookMenu>
This raises the following Exception:
VE: Error Rendering View
java.lang.NullPointerException: value
at javax.faces.model.SelectItem.<init>(SelectItem.java:69)
at
org.apache.myfaces.custom.navmenu.NavigationMenuItem.<init>(NavigationMenuItem.java:50)
at
org.apache.myfaces.custom.navmenu.NavigationMenuItem.<init>(NavigationMenuItem.java:65)
at
org.apache.myfaces.custom.navmenu.NavigationMenuUtils.getNavigationMenuItemList(NavigationMenuUtils.java:63)
at
org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:120)
at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)
at
com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:513)
at
com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:518)
at
com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:518)
at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:447)
...
2)
<x:jscookMenu layout="hbr" theme="ThemeOffice" id="app_menu">
<x:navigationMenuItems value="#{login.item}"/>
</x:jscookMenu>
Doesn't raises any Exception, renders the menu properly but ignores the
action, i.e. by clicking the menu item I get the same (caller) page
(with damaged layout) instead of the correct target page.
By the way, I tested a simple <h:commandLink with the same action and it
works perfectly.
Any suggestion?
Many thanks.
Marco